package com.lizhi.yun.db.msb.dao;

import com.lizhi.mybatis.interceptor.PageBounds;
import com.lizhi.yun.db.msb.entity.MsbTreatRecordEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface MsbTreatRecordDao{

	public int insertRecord(MsbTreatRecordEntity record);//添加一条完整记录

	public int deleteById(@Param("trId") String trId,@Param("hospitalId") String hospitalId,@Param("hospitalSystemId")  String hospitalSystemId);//通过Id(主键)删除一条记录

	public int updateByIdSelective(MsbTreatRecordEntity record);//按Id(主键)修改指定列的值

	public MsbTreatRecordEntity selectById(@Param("trId") String trId,@Param("hospitalId") String hospitalId,@Param("hospitalSystemId")  String hospitalSystemId);//通过Id(主键)查询一条记录

	public List<MsbTreatRecordEntity> selectByMap(Map<String, Object> paramMap, PageBounds pageBounds);//根据条件查询


}